#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 0, b = 0;
	int max(int x, int y);
	scanf("%d%d",&a,&b);
	int k = max(a,b);
	while (1)
	{
		if (k % a == 0 && k % b == 0)
		{
			printf("%d\n", k);
			break;
		}
		else
		{
			k++;

		}
	}
	
	return 0;
}
int max(int x, int y)
{
	if (x > y)
		return x;
	return y;
}